@extends('dashboard.createform')
@section('form')
	@section('title') 添加品牌 @endsection
	@section('form')
	<form action="{{isset($data) ? route('admin.swipers.update', $data) :  route('admin.swipers.store') }}" method="post">
		@upload(['name' => 'picture', 'label' => '图片', 'default' => $data->picture??''])
		@endupload
		@text(['name' => 'link', 'label' => '链接', 'default' => $data->link??''])
		@endtext
			@text(['name' => 'sort', 'label' => '排序', 'default' => $data->sort??0, 'type' => 'number'])
		@endtext
		@isset($data) @method('PUT') @endisset
		@submit @endsubmit
	</form>
	@errmsg @enderrmsg
	@endsection
@endsection